<#compress>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>控制中心</title>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<style type="text/css">
		.menuli {
			list-style: none;
			float: right;
			margin-right: 5px;
			margin-top: 15px;
			color: black;
			font-family: 微软雅黑;
		}
		
		.menuli a {
			color: black;
			font-family: 微软雅黑;
			font-size: 14px;
		}
		
		.easyui-tree li a {
			font-family: 微软雅黑;
			color: black;
			text-decoration: none;
		}
		
		.easyui-tree li a:HOVER {
			color: #FF5151;
		}
		
		img {
			border: none;
		}
		
		.accordion {
			border-width: 0px;
		}
		.navigation{
			text-decoration: none;
		}
		.navigation:hover {
			font-size: 15px;
			color: red;
			/*#51a351*/
			font-weight: bold;
		}
		</style>
		<base href="${webroot}" />
		<#include "../../template/easyui.ftl" parse="true" encoding="UTF-8">
		<script type="text/javascript" src="res/rbac/tree.js"></script>
	</head>
	<body class="easyui-layout" style="font-family: 微软雅黑;">
		<div data-options="region:'north',split:false"
			style="height: 62px; overflow: hidden; background-image: url('res/img/head-repx.jpg'); background-repeat: repeat-x;">
			<div style="height: 62px; width: 100%; <#--background-image: url('res/img/head-img.jpg'); background-repeat: no-repeat;-->">
				<ol style="height: 100%; width: 100%; list-style: none; margin: 0 0 0 0; padding: 0 0 0 0;">
					<li>
						<div style="width: 100%; height: 40px; margin-top: 0px; padding-top: 0px;">
							<ol>
								<li class="menuli">
									<a href="javascript:logoff();" style="text-decoration: none; color: red;">
										<img alt="退出" src="res/img/tb_exit.png">
									</a>
								</li>
								<li class="menuli">
									<a href="javascript:profile();" style="text-decoration: none; color: blue;">
										<img alt="修改密码" src="res/img/tb_modify.png">
									</a>
								</li>
								<li class="menuli" style="background-image: url('res/img/tb_display.png'); width: 211px; height: 30px;">
									<img alt="" src="res/img/admin.png">
									<b style="font-size: 14px; color: white;">
										你好，${Current_User.UAlias}(${Current_User.UAccount})
									</b>
								</li>
								<li class="menuli" style="margin-top: 20px">
								<label style = "display: inline-block;padding: 0 ;vertical-align: middle; font-size: 15px">所属系统:</label>
									<input class="easyui-combobox" name="ASystem" id="ASystem" data-options="
												url: 'const/getcode.tree?pid=27',
												method: 'get',
												valueField: 'c_value',
												textField: 'c_value',
												panelWidth: 200,
												value:'${current_system}',
												panelHeight: 'auto',onSelect:comboboxSelect" style="height:25px">
								</li>
							</ol>
						</div>
					</li>
				</ol>
			</div>
		</div>
		<div data-options="region:'west',split:true,title:'菜单'" style="width: 200px;">
		 	<#--
		 	<div id="menuToolBtn">
				<a href="javascript:void(0)" class="easyui-menubutton" data-options="menu:'#menuToolBtnItem'">切换菜单风格</a>
				<div id="menuToolBtnItem">
					<div onclick="accordionMenu();">风琴</div>
					<div onclick="treeMenu();">树</div>
				</div>
			</div>
			-->
			<#-- 菜单容器 -->
			<div id="menu_container" class="easyui-panel"
				data-options="fit:true,border:false">
				<div id="menu_container_context"></div>
			</div>
		</div>
		<div data-options="region:'center',border:false" style="background: #eee; border: 0">
			<div id="body_tabs" class="easyui-tabs" style="padding: 0 0 0 0; margin: 0 0 0 0;"
				data-options="fit:true,border:false,plain:false,onContextMenu:popupMenu" style="border-collapse:collapse;">
			</div>
		</div>
		<!-- tab 右键菜单 -->
		<div id="tabsMenu" class="easyui-menu" style="width: 120px;">
			<div id="close">关闭</div>
			<div id="Other">关闭其他</div>
			<div id="All">关闭所有</div>
		</div>
		
		<!-- 修改密码 -->
		<div id="pdialog" class="easyui-dialog" title="修改密码"
			style="width: 360px; height: 370px; padding-left: 20px; padding-top: 10px;"
			data-options="resizable:true,modal:true,buttons:'#toolbtn',closed:true">
			<form name="pform" id="pform">
				<input type="hidden" name="id" value="${Current_User.id}">
				<input type="hidden" name="UAccount" value="${Current_User.UAccount}">
				
				<font style="font-size: 14px;">原密码:</font>
				<font color="red"><b>(必填)</b></font><br />
				<input name="oldPwd" id="oldPwd" type="password"
					class="easyui-textbox" data-options="required:true"
					style="height: 32px; width: 300px;"><br>
				
				<font style="font-size: 14px;">新密码:</font><br>
				<input name="UPwd" id="UPwd" type="password" maxlength="18" class="easyui-textbox"
					 style="width:300px;height: 32px;"><br>
				
				<font style="font-size: 14px;">确认密码:</font><br>
				<input id="cpwd" type="password" maxlength="18" class="easyui-textbox"
					 style="width:300px;height: 32px;"><br>
				
				<font style="font-size: 14px;">邮箱:</font><br>
				<input name="UMail" value="${Current_User.UMail}" maxlength="50"
					class="easyui-textbox" data-options="validType:'email'"
					style="height: 32px; width: 300px;"><br>
				
				<font style="font-size: 14px;">手机号码:</font><br>
				<input name="UMobile" value="${Current_User.UMobile}" maxlength="20"
					class="easyui-textbox" data-options="required:true,validType:'mobile'"
					style="height: 32px; width: 300px;"><br>
			</form>
		</div>
		<div id="toolbtn">
			<a onclick="javascript:editprofile();" class="easyui-linkbutton"
				data-options="iconCls:'icon-save',plain:true">保存</a>
		</div>
	</body>
	<script type="text/javascript" src="res/rbac/main.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			if (self.frameElement && self.frameElement.tagName == "IFRAME") {
				window.parent.location.href = "signin.do";
			}
			//"tree"
			inital_menu("${menuType!"accordion"}");
		});
		function comboboxSelect(record){
			$.messager.confirm('提示', '需关闭全部选项卡,是否继续?', function(r){
		         if (r){
					$.ajax({
						url : "systemChange.do",
						type : 'POST',
						dataType : 'json',
						data : {'system':$('#ASystem').combobox("getText")},
						success : function(status) {
							if (status == true) {
								Common.Util.showMessager({msg:"切换成功!"});
								CloseTab("", "All");
							} else {
								Common.Util.showMessager({msg:"切换失败!"});
							}
						},
						error:function(XMLHttpRequest, textStatus, errorThrown){  
							$.messager.progress('close');
				            if(textStatus=="parsererror"){
				            	Common.Util.showMessager({msg:"无权限!"});
				            }
				        }
					});
		         }
		     });
		}
	</script>
</html>

</#compress>